package ch.trackedbean.server.data.dom;

public class PlaceDom implements Dom {

	/**
	 * Property constant for {@link #getKey()}/{@link #setKey(int)}. Type {@link int}.
	 */
	public static final String ATTR_KEY = "key";

	/**
	 * Property constant for {@link #getCity()}/{@link #setCity(String)}. Type {@link String}.
	 */
	public static final String ATTR_CITY = "city";

	/**
	 * Property constant for {@link #getCityCode()}/{@link #setCityCode(int)}. Type {@link int}.
	 */
	public static final String ATTR_CITY_CODE = "cityCode";

	private Integer key;

	private Integer cityCode;

	private String city;

	/**
	 * @param key
	 * @param cityCode
	 * @param city
	 */
	public PlaceDom(Integer key, int cityCode, String city) {
		this.key = key;
		this.cityCode = cityCode;
		this.city = city;
	}

	/**
	 * @return Returns the key.
	 */
	public Integer getKey() {
		return key;
	}

	/**
	 * @param key The key to set.
	 */
	public void setKey(Integer key) {
		this.key = key;
	}

	/**
	 * @return Returns the cityCode.
	 */
	public int getCityCode() {
		return cityCode;
	}

	/**
	 * @param cityCode The cityCode to set.
	 */
	public void setCityCode(int cityCode) {
		this.cityCode = cityCode;
	}

	/**
	 * @return Returns the city.
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @param city The city to set.
	 */
	public void setCity(String city) {
		this.city = city;
	}
}
